/* \file
   Widget principal, contém a barra de endereços, a área de navegação,
   e a barra de status.
   \author Rodrigo Setti
*/
#ifndef _BROWSER__H_
#define _BROWSER__H_

#include <QWidget>
#include <QString>
#include <QVBoxLayout>
#include <QResizeEvent>

#include <addressbar.h>
#include <browserarea.h>
#include <bottombar.h>
#include <browserhistory.h>
#include <browserconf.h>

/**
 * Widget principal, contém BrowserArea, AddressBar e BottomBar.
 * responsável por lançar(mostrar) o BrowserConf e BrowserHistory
 * \author Rodrigo Setti
 */
class Browser : public QWidget
{
Q_OBJECT

public:

    Browser(QWidget *parent = 0);
    ~Browser();

public slots:

    /** Muda o titulo da janela */
    void titleChanged(const QString &text);
    /** Mostra(show) o widget BrowserHistory */
    void showHistory();
    /** Cria e mostra(show) o widget BrowserConf */
    void showConf();

private:

    QVBoxLayout *layout;

    AddressBar *addressBar;
    BrowserArea *browserArea;
    BottomBar *bottomBar;

    BrowserHistory *browserHistory;
    BrowserConf *browserConf;
    
protected:
    void resizeEvent ( QResizeEvent * event );
};

#endif /* _BROWSER__H_ */
